#ifndef HTTPMANAGER_H
#define HTTPMANAGER_H


#include <QObject>
#include <QJsonObject>
#include <QHash>

typedef enum {
    GET,
    POST
}AccessType;

class QNetworkAccessManager;

class HttpManager
{
public:
    HttpManager();

    static QByteArray accessResult(const QString &url, const QHash<QString,QString> header, const AccessType type, const QJsonObject &obj = QJsonObject()/*for post*/,const QHash<QString, QString> cookie=QHash<QString,QString>());

};

#endif // HTTPMANAGER_H
